//
//  AddressCell.m
//  YYPHSpeedJump
//
//  Created by sujiang on 15/12/22.
//  Copyright © 2015年 sujiang. All rights reserved.
//

#import "AddressCell.h"

@implementation AddressCell

- (void)awakeFromNib {
    
}
- (void)setModel:(AddressModel *)model
{
    _model = model;
    self.nameLb.text = model.real_name;
    self.addressLb.text = [NSString stringWithFormat:@"%@%@",model.area,model.address];
    self.phoneNumLb.text = model.phone;
    if ([model.default_id isEqualToString:@"0"]) {
        [self.setDefaultAddBtn setBackgroundImage:[UIImage imageNamed:@"wxz"] forState:(UIControlStateNormal)];
    } else {
        [self.setDefaultAddBtn setBackgroundImage:[UIImage imageNamed:@"xz"] forState:(UIControlStateNormal)];
    }
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];


}




@end
